package com.brzjomo.embraceofthevoid.init;

import com.brzjomo.embraceofthevoid.EmbraceOfTheVoid;
import com.brzjomo.embraceofthevoid.blocks.VillagerAltar;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.Block;
import net.minecraft.util.Identifier;

import java.util.Objects;

public class ModBlocks {
    // Blocks
    public static final VillagerAltar VILLAGER_ALTAR = new VillagerAltar(FabricBlockSettings.create().strength(4.0F, 6.0F).requiresTool().luminance(5));

    // Block List
    public static final Block[] BLOCK_LIST = {VILLAGER_ALTAR};

    // Block Path
    public static final String VILLAGER_ALTAR_PATH = "villager_altar";

    // Get Path
    public static String getPath(Block blockIn) {
        if (blockIn.equals(VILLAGER_ALTAR)) {
            return VILLAGER_ALTAR_PATH;
        } else {
            return null;
        }
    }

    // Get ID
    public static Identifier getId(Block blockIn) {
        return new Identifier(EmbraceOfTheVoid.MOD_ID, Objects.requireNonNull(getPath(blockIn)));
    }
}
